/*------------------------------------------------------
                bsp层XXX的外部/板载设备驱动函数
@brief functions:
.
.
.
.
@attention:

@auther:Cherno
--------------------------------------------------------*/
#ifndef __USER_PRINT_H__
#define __USER_PRINT_H__

#include <stdint.h>
#include "usart.h"
//=====================================================================================================

/*-----------------selections
--------------------------------------------------------
@brief:
*/
#define USART_DMA_MODE 1
#define USB_CDC_MODE 1
/*-----------------settings
--------------------------------------------------------
@brief:
*/
extern UART_HandleTypeDef huart1;
#define UARTHANDLE (UART_HandleTypeDef *)(&huart1)

#if USART_DMA_MODE == 1
#include "dma.h"
extern DMA_HandleTypeDef hdma_usart1_tx;
#endif

#if USB_CDC_MODE == 0
#include "usbd_cdc_if.h"
#endif

#define TF_MAX_DELAY 500

/*-----------------definitions
--------------------------------------------------------
@brief:
*/

//=====================================================================================================

/*-----------------params
--------------------------------------------------------
@brief:
*/
//

//
typedef struct usart_rx
{

} usart_rx_t;

/*-----------------functions
--------------------------------------------------------
@brief:
*/
//
int Debug_Printf(const char *format, ...);
//
int Debug_Printf_DMA(const char *fmt, ...);
//
int Debug_VOFA_Print_DMA(const char *fmt, ...);
//
void Conversion_float(uint8_t *buf, float *data);
//
void VOFA_Print(int8_t *tx_buf, uint32_t len);
//
void VOFA_Print_DMA(uint8_t *tx_buf, uint32_t len);
//
void VOFA_Print_CDC(uint8_t *tx_buf, uint32_t len);
/*-----------------XXX API_h
--------------------------------------------------------
@brief:
*/
//

/*------------------------end-------------------------*/
#endif